package io.renren.modules.cartrial.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.cartrial.dao.ReservationTimeDao;
import io.renren.modules.cartrial.entity.ReservationTimeEntity;
import io.renren.modules.cartrial.service.ReservationTimeService;



@Service("reservationTimeService")
public class ReservationTimeServiceImpl implements ReservationTimeService {
	@Autowired
	private ReservationTimeDao reservationTimeDao;
	
	@Override
	public ReservationTimeEntity queryObject(Integer id){
		return reservationTimeDao.queryObject(id);
	}
	
	@Override
	public List<ReservationTimeEntity> queryList(Map<String, Object> map){
		return reservationTimeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return reservationTimeDao.queryTotal(map);
	}
	
	@Override
	public void save(ReservationTimeEntity reservationTime){
		reservationTimeDao.save(reservationTime);
	}
	
	@Override
	public void update(ReservationTimeEntity reservationTime){
		reservationTimeDao.update(reservationTime);
	}
	
	@Override
	public void delete(Integer id){
		reservationTimeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		reservationTimeDao.deleteBatch(ids);
	}
	
}
